﻿using B.S.DataBase.MyProject.Domain.Materials;
using B.S.DataBase.MyProject.ErrorCode;
using MediatR;

namespace T.E.ERP.Write.API.Applicantions.Command.ProcurementsCommand
{
    /// <summary>
    /// 采购发票修改命令
    /// </summary>
    public class EditPurchaseInvoicesCommand : IRequest<APIResult<object>>
    {
        public int Peid { get; set; }
        /// <summary>
        /// 单据编码
        /// </summary>
        public long DocumentCode { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime DocumentTime { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public bool DocumentStuct { get; set; }
        /// <summary>
        /// 业务状态
        /// </summary>
        public int BusinessStuct { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        public int Documentid { get; set; }
        /// <summary>
        /// 审核员
        /// </summary>
        public string Auditor { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        public string Operator { get; set; }
        /// <summary>
        /// 审核日期
        /// </summary>
        public DateTime AuditDate { get; set; }
        /// <summary>
        /// 供应商（外键)
        /// </summary>
        public int Supid { get; set; }
        /// <summary>
        /// 税号
        /// </summary>
        public string TaxNumber { get; set; }
        /// <summary>
        /// 发票类型
        /// </summary>
        public int InvoiceType { get; set; }
        /// <summary>
        /// 发票代码
        /// </summary>
        public string InvoiceCode { get; set; }
        /// <summary>
        /// 发票号码
        /// </summary>
        public string InvoiceNumber { get; set; }
        /// <summary>
        /// 开票日期
        /// </summary>
        public DateTime InvoiceDate { get; set; }
        /// <summary>
        /// 红字蓝字
        /// </summary>
        public int Redandblue { get; set; }
        /// <summary>
        /// 发票金额
        /// </summary>
        public double InvoiceAmount { get; set; }
        /// <summary>
        /// 税额
        /// </summary>
        public double TaxAmount { get; set; }
        /// <summary>
        /// 价税合计
        /// </summary>
        public double TotalIncludingTax { get; set; }
        /// <summary>
        /// 财务状态
        /// </summary>
        public int FinancialStatus { get; set; }

        /// <summary>
        /// 税率
        /// </summary>
        public double TaxLv { get; set; } = 13;

        /// <summary>
        /// 物料编码(外键)
        /// </summary>
        public long material_code { get; set; }

        /// <summary>
        /// 物料基本信息
        /// </summary>
        public List<Material_BasicModel> Materialtab { get; set; }


        //public string orderNumber { get; set; }
        //public string warehouse { get; set; }
        //public string receiptNumber { get; set; }
        //public string materialCode { get; set; }
        //public string materialName { get; set; }
        //public string specification { get; set; }
        //public string unit { get; set; }
        //public int pcount { get; set; }
        //public int price { get; set; }
    }
}
